package com.dx.mes.service.spc.service.testQ;
import com.dx.mes.common.core.rabbitmq.BaseConnFactory;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * Created by XXD on 2018/4/10.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath*:applicationContext.xml", "classpath*:applicationContext-*.xml" })
public class SendQ {

    @Resource
    private BaseConnFactory baseConnFactory;

    @Test
    public void addXFRREQProc() throws Exception{
        //创建连接
        Connection connection = baseConnFactory.creatConnectionFactory().newConnection();
        // 创建一个频道
        Channel channel = connection.createChannel();
        try {
            //声明队列
            channel.queueDeclare("TOOL_PARAM", true, false, false, null);
            //发送消息到requestQueueName队列
//            String message = JacksonUtil.toJSONStr(xfrreq);
            String message = "{\"fab\":\"101a01\",\"line\":\"rena01\",\"operation\":\"A5311\",\"dataList\":[{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"qyxs_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机气源显示\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"zszkxs_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机主上真空显示\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"zxzkxs_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机主下真空显示\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"zxpln_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机主下室皮拉尼\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"cszkjc_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机从上真空检测\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"cxzkjc_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机从下真空检测\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"cxpln_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机从下室皮拉尼\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd1_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度1\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd2_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度2\"},  {\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd3_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度3\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd4_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度4\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd5_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度5\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd6_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度6\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd7_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度7\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd8_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度8\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd9_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度9\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1zyxwd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1主油箱温度\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1ztwd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1主台温度计算\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd1_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度1\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd2_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度2\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd3_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度3\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd4_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度4\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd5_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度5\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd6_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度6\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd7_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度7\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd8_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度8\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd9_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度9\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2zyxwd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2主油箱温度\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2ztwd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2主台温度计算\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1zkyssd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1真空延迟设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1czksjsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1抽真空时间设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1jy1sd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1加压1设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1jys1ysd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1加压1延迟设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1jy2sd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1加压2设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1jy2bcsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1加压2保持设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1jy3sd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1加压3设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1cysjsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1层压时间设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1xcqsjsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1下充气时间设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1xczksjsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1下抽真空时间设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1zwdsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1主温度设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wdsxsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度上限设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wdxxsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度下限设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2zkyssd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2真空延迟设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2czksjsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2抽真空时间设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.335\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2jy1sd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2加压1设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2ys1ysd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2加压1延迟设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2jy2sd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2加压2设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2jy2bcsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2加压2保持设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2jy3sd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2加压3设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2cysjsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2层压时间设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2xcqsjsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2下充气时间设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2xczksjsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2下抽真空时间设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2zwdsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2主温度设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wdsxsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度上限设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wdxxsd_1.PV\",\"Data_Type\":\"Double\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度下限设定\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"zbmqbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机主机编码器报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"zjydbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机主机原点报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"hgdbzbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机层压后光电被遮挡报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"qgdbzbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机前光电被遮报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"jlqgdbzbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机进料前光电遮挡报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"xlcsbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机卸料超时报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"xlsqcsbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"卸料申请超时报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"jl_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机进料\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"cl_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机出料\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"1dcyks_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机1段层压开始\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"1dcyjs_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机1段层压结束\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"2dcyks_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机2段层压开始\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"2dcyjs_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机2段层压结束\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1qybj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1气源报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1szkbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1上真空报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1xzkbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1下真空报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1xcqbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1下充气报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1kgdgz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机开盖到位信号故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1ggdgz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机关盖到位信号故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1jxggz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机继续关盖故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1scqgz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机上充气故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1plngz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机皮拉尼报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1jrcybj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机加热站超压报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1jrdybj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机加热站低油报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1jrcwbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机加热站超温报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1pjwdcx_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机平均温度超限\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd1gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度1故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd2gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度2故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd3gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度3故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd4gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度4故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd5gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度5故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd6gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度6故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd7gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度7故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd8gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度8故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t1wd9gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台1温度9故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2szkbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2上真空报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2xzkbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2下真空报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2xcqbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2下充气报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2kgdgz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机开盖到位信号故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2ggdgz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机关盖到位信号故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2jxggz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机继续关盖故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2scqgz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机上充气故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2plngz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机皮拉尼报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2jrcybj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机加热站超压报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2jrdybj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机加热站低油报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2jrcwbj_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机加热站超温报警\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2pjwdcx_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机平均温度超限\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd1gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度1故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd2gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度2故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd3gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度3故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd4gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度4故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd5gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度5故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd6gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度6故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd7gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度7故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd8gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度8故障\"},{\"TimeStamp\":\"2018-04-12 15:15:05.336\",\"Eqt\":\"100\",\"SubEqt\":\"100\",\"Item_ID\":\"t2wd9gz_1.PV\",\"Data_Type\":\"Boolean\",\"Value\":\"6\",\"Quality\":\"Good\",\"Update_Count\":\"1\",\"VariableName\":\"1#层压机台2温度9故障\"}]}";
            channel.basicPublish("", "TOOL_PARAM", new AMQP.BasicProperties(), message.getBytes("UTF-8"));
        } catch (Exception e) {
            throw e;
        } finally {
            if(channel.isOpen()){
                channel.close();
            }

            if(connection.isOpen()){
                connection.close();
            }
        }
    }

}
